{# вывод директорий и папок #}
{% load i18n %}



{% for file in objlist %}
<div class="file-box-details" name="file row" title="{{ file.name }}" id="">
<div style="position: relative;overflow:hidden;">
    <div class="details-check">
      {#<img alt="" src="/static/images/icons/icon_spacer.gif" class="checkbox sprite s_checkbox">#}
      
      <input type="checkbox" name="drink" value="rad2">
      
    </div>
    <div class="details-icon">
      <a href="" name="file icon">
        <img class="sprite s_page_white_word link-img" alt="" style="vertical-align: bottom; border: 0pt none;" 
                     src="{{ STATIC_URL }}filedownload/img/{% if file.isdir %}treefolder.png{% else %}file.gif{% endif %}">
      </a>
    </div>
    <div class="details-filename">
      {% if file.isdir %}
      <a href="#" onclick="return load_directory('{% url ajax_ls_path file.rel_dir %}')" name="file name">{{ file.name }}</a>
      {% else %}
         {{ file.name }}
      {% endif %}
    </div>
    <div class="details-size">{% if file.isdir %}&nbsp;{% else %}{{ file.size|filesizeformat }}{% endif %}</div>
    <div class="details-modified">{{ file.date|date:"d.m.Y  H:i" }}</div>
    {# <div class="">{{ file.mimetype }}</div> #}
    <div  class="download-link" {# style="visibility: hidden; #}">
    {% if not file.isdir %}
          <a href="{% url fd_download file.rel_dir %}">
      <img alt="" width="14" height="14" src="{{ STATIC_URL }}filedownload/img/download.png">
      </a>
     {% endif %}
    </div>

</div>
</div>
{% endfor %}
